//
//  SingleSelectionCellData.h
//  18Birdies
//
//  Created by Lc on 15/5/2.
//  Copyright (c) 2015年 Lc. All rights reserved.
//

#import "LcSelectableCellData.h"

@class SingleSelectionCellData;
@class LcFont;

@protocol SingleSelectionDelegate<NSObject>
@required
- (BOOL)shouldSelectCellData:(SingleSelectionCellData*)cellData;
- (void)onSingleSelectionChanged:(SingleSelectionCellData*)cellData;
@end

@interface SingleSelectionCellData : LcSelectableCellData

+ (instancetype)cellDataWithTitle:(NSString*)title
                                        group:(NSString*)group
                                        value:(int)value
                                     selected:(BOOL)selected;

+ (instancetype)cellDataWithTitle:(NSString*)title
                                     subtitle:(NSString*)subtitle
                                        group:(NSString*)group
                                        value:(int)value
                                     selected:(BOOL)selected;

@property(nonatomic, copy, readonly) NSString* title;
@property(nonatomic, strong) LcFont* titleFont;
@property(nonatomic, copy, readonly) NSString* subtitle;
@property(nonatomic, copy) NSString* rightContent;
@property(nonatomic, assign) BOOL showRightArrow;
@property(nonatomic, weak) id<SingleSelectionDelegate> delegate;

@property(nonatomic, assign) int subtitleNumberOfLines;

@end
